﻿<phone:PhoneApplicationPage
    x:Class="wpapp.login"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded">

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot">
    	<Grid.Background>
    		<ImageBrush Stretch="Fill" ImageSource="/20119281531811.jpg"/>
    	</Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="PageTitle" Text="登 录 华 康 家 私" Margin="10,0,0,0" FontSize="48" HorizontalAlignment="Left" Foreground="{StaticResource PhoneContrastForegroundBrush}" />
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="50,70,0,0" Name="textBlock1" Text="用户名/Email/手机" VerticalAlignment="Top" FontSize="24" Foreground="{StaticResource PhoneBackgroundBrush}" />
            <TextBox Height="72" HorizontalAlignment="Left" Margin="36,110,0,0" Name="txtUN" VerticalAlignment="Top" Width="400" FontSize="28" IsEnabled="True" KeyDown="txtUN_KeyDown" Foreground="{StaticResource PhoneBackgroundBrush}" Background="{StaticResource PhoneRadioCheckBoxCheckDisabledBrush}" />
            <TextBlock FontSize="24" Height="30" HorizontalAlignment="Left" Margin="50,200,0,0" Name="textBlock2" Text="密  码" VerticalAlignment="Top" Foreground="{StaticResource PhoneBackgroundBrush}" />
            <PasswordBox Height="72" HorizontalAlignment="Left" Margin="36,240,0,0" Name="txtPW" VerticalAlignment="Top" Width="400" KeyDown="txtPW_KeyDown" Background="{StaticResource PhoneTextBoxReadOnlyBrush}" />
            <TextBlock FontSize="24" Height="30" HorizontalAlignment="Left" Margin="50,334,0,0" Name="textBlock4" Text="确认密码" VerticalAlignment="Top" Visibility="Collapsed" Foreground="{StaticResource PhoneBackgroundBrush}" />
            <PasswordBox Height="72" HorizontalAlignment="Left" Margin="36,390,0,0" Name="txtPW2" VerticalAlignment="Top" Width="400" KeyDown="txtPW2_KeyDown" Visibility="Collapsed" Background="{StaticResource PhoneTextBoxReadOnlyBrush}" />
            <Button Content="登     录" Height="72" HorizontalAlignment="Left" Margin="36,577,0,0" Name="button1" VerticalAlignment="Top" Width="391" Click="button1_Click" Background="{StaticResource PhoneAccentBrush}" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="50,432,0,0" Name="textBlock3" Text="" VerticalAlignment="Top" FontSize="22" Foreground="#FFE81818" />
            <RadioButton x:Name="rd1" Content="已有账号" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,500,0,0" Checked="rd1_Checked" Background="{StaticResource PhoneTextBoxReadOnlyBrush}" Foreground="{StaticResource PhoneBackgroundBrush}"/>
            <RadioButton x:Name="rd2" Content="无账号注册新用户" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="177,500,0,0" Checked="rd2_Checked" Background="{StaticResource PhoneTextBoxReadOnlyBrush}" Foreground="{StaticResource PhoneBackgroundBrush}"/>
        </Grid>
    </Grid>

</phone:PhoneApplicationPage>